<template>
  <router-view />
</template>

<script lang="ts">
import { defineComponent, onMounted } from "vue";
import FontFaceObserver from "fontfaceobserver";
export default defineComponent({
  name: "App",
  components: {},
  setup() {
    var font = new FontFaceObserver("Ubuntu");
    font.load().then(
      () => {
        document.body.classList.add("fonts-loaded");
      },
      () => {
        console.log("Font is not available");
      }
    );
  },
});
</script>
